/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package DigimonAdventure.Database;

import javax.swing.ImageIcon;

/**
 *
 * @author Benz Louis
 */
public enum Armor implements Sellable{
	//identifier (name ,modV, modS, modR, modA, price)
	//modifier bukan persen namun nilai
	//identifier adalah nama program buat si item
	//name adalah nama alias yang bakal terbaca di sistem ntar
	//modV berarti nambahin vitality (convert ke HP), modS nambahin strength (convert ke attack), dst
	//price berarti harga beli di shop (harga jual = harga beli/2)

	None ("-Empty Slot-",0,0,0,0,0,"This slot is empty...","N/A","/DigimonAdventure/Graphics/Arm.gif"),

	/**SArm - Standard Armor, +Vit only*/
	SArm1 ("Crude Armor",100,0,0,0,200,"A crude armor full of holes","Minor increase in HP","/DigimonAdventure/Graphics/Arm.gif"),
	SArm2 ("Metal Plating",500,0,0,0,1000,"Metal plates attached to body to increase resilience","Moderate increase in HP","/DigimonAdventure/Graphics/Arm.gif"),
	SArm3 ("Grand Armor",1500,0,0,0,3500,"This armor is said to make the bearer almost indestructible","Major increase in HP","/DigimonAdventure/Graphics/Arm.gif"),

	/**HArm - Heavy Armor, +Vit, -Agi*/
	HArm1 ("Heavy Armor",150,0,0,-10,300,"A heavy armor that offer good protection","Increase HP, but slightly reduces Agility","/DigimonAdventure/Graphics/HArm.gif"),
	HArm2 ("Great Armor",700,0,0,-50,1500,"It is so thick that almost no blade can pierce it","Greatly increase HP, but reduces Agility","/DigimonAdventure/Graphics/HArm.gif"),
	HArm3 ("Terra Armor",2500,0,0,-150,6500,"The legendary armor made of the Shards of Terra","Extremely increase HP, but greatly reduces Agility","/DigimonAdventure/Graphics/HArm.gif"),

	/**WArm - Weaponlike Armor, +Vit & Str*/
	WArm1 ("Thorn Armor",50,20,0,0,300,"An armor barbed with thorns to increase offensive abiity","Slightly increase HP & Attack","/DigimonAdventure/Graphics/WArm.gif"),
	WArm2 ("Blade Mail",300,100,0,0,1500,"Armor with blades pointing out of it? Scary...","Increase HP & Attack","/DigimonAdventure/Graphics/WArm.gif"),
	WArm3 ("Chaos Armor",700,300,0,0,6500,"For those who thinks that offense is the best defense","Greatly increase HP & Attack","/DigimonAdventure/Graphics/WArm.gif"),

	/**DArm - Defensive Armor, +Vit & Res*/
	DArm1 ("Bionics",50,0,15,0,300,"Biological implants to improve defense & resilience","Slightly increase HP & Defense","/DigimonAdventure/Graphics/DArm.gif"),
	DArm2 ("Power Armor",300,0,75,0,1500,"This armor provides both protection and increased vigor","Increase HP & Defense","/DigimonAdventure/Graphics/DArm.gif"),
	DArm3 ("Gargantua Armor",700,0,250,0,6500,"Legendary armor of Gargantua the Immortal","Greatly increase HP & Defense","/DigimonAdventure/Graphics/DArm.gif"),

	/**AArm - Agile Armor, +Vit & Agi*/
	AArm1 ("Light Robe",50,0,0,10,300,"A light armor that offers better movement","Slightly increase HP & Agility","/DigimonAdventure/Graphics/AArm.gif"),
	AArm2 ("Mythrill Mesh",300,0,0,50,1500,"As strong as steel, as light as feather...","Increase HP & Agility","/DigimonAdventure/Graphics/AArm.gif"),
	AArm3 ("Wraithbone Armor",700,0,0,150,6500,"No wraiths were harmed in the making of this armor","Greatly increase HP & Agility","/DigimonAdventure/Graphics/AArm.gif");

	private String name;
	private int modV;
	private int modS;
	private int modR;
	private int modA;
	private int price;
    private String desc;
    private String val;
    private String imageLoc;
    private ImageIcon icon;

    Armor(String name,int modV,int modS,int modR,int modA,int price, String desc, String val, String imageLoc){
		this.name = name;
		this.modV = modV;
		this.modS = modS;
		this.modR = modR;
		this.modA = modA;
        this.price = price;
        this.desc = desc;
        this.val = val;
        this.imageLoc = imageLoc;
	}
	//kasih getter juga
	public String getName(){
		return name;
	}
	public int getModV() {
		return modV;
	}
	public int getModS() {
		return modS;
	}
	public int getModR() {
		return modR;
	}
	public int getModA() {
		return modA;
	}
    public int getPrice() {
        return price;
    }
    public String getDesc(){
        return desc;
    }
    public String getVal(){
        return val;
    }
    public String getImageLocation(){
        return imageLoc;
    }
    public ImageIcon getIcon(){
        return new ImageIcon(getClass().getResource(this.getImageLocation()));
    }
}

